package com.yunhai.model.entity.fms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunhai.model.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 饮品规格配置实体
 * 
 * @author mengze
 * @date 2025-05-17 12:43:11
 */
@ApiModel("饮品规格配置实体")
@Data
@Accessors(chain = true)
@TableName("fms_specification_config")
public class FmsSpecificationConfigEntity extends BaseEntity {

	@ApiModelProperty(value = "主键id", example = "10001")
	@TableId(type = IdType.ASSIGN_ID)
	private Long id;

	@ApiModelProperty("所属规格")
	private Long parentId;
	/**
	 * 启用状态(1:启用 0:禁用)
	 */
	@ApiModelProperty("启用状态(1:启用 0:禁用)")
	private Integer enabled;

	/**
	 * 版本号
	 */
	@ApiModelProperty("版本号")
	private Integer version;
	/**
	 * 设备编号
	 */
	@ApiModelProperty("设备编号")
	private String mcNo = "MC0001";
	/**
	 * 规格编码
	 */
	@ApiModelProperty("规格编码")
	private String number;
	/**
	 * 规格名称
	 */
	@ApiModelProperty("规格名称")
	private String name;

	@TableField(exist = false)
	private List<FmsSpecificationItemConfigEntity> children = new ArrayList<>();
}
